\hypertarget{classTiXmlElement}{\section{\-Ti\-Xml\-Element \-Class \-Reference}
\label{classTiXmlElement}\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}}
}


{\ttfamily \#include $<$tinyxml.\-h$>$}

\-Inheritance diagram for \-Ti\-Xml\-Element\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classTiXmlElement}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlElement_a01bc3ab372d35da08efcbbe65ad90c60}{\hyperlink{classTiXmlElement_a01bc3ab372d35da08efcbbe65ad90c60}{\-Ti\-Xml\-Element} (const char $\ast$in\-\_\-value)}\label{classTiXmlElement_a01bc3ab372d35da08efcbbe65ad90c60}

\begin{DoxyCompactList}\small\item\em \-Construct an element. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a40fc2e3c1a955e2f78e1a32350d180e7}{\hyperlink{classTiXmlElement_a40fc2e3c1a955e2f78e1a32350d180e7}{\-Ti\-Xml\-Element} (const std\-::string \&\-\_\-value)}\label{classTiXmlElement_a40fc2e3c1a955e2f78e1a32350d180e7}

\begin{DoxyCompactList}\small\item\em std\-::string constructor. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a1ca4465f3c2eac6a60e641cd7f1d9f7e}{{\bfseries \-Ti\-Xml\-Element} (const \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} \&)}\label{classTiXmlElement_a1ca4465f3c2eac6a60e641cd7f1d9f7e}

\item 
\hypertarget{classTiXmlElement_adecf0300374e8658629996b3ee12cf18}{\hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} \& {\bfseries operator=} (const \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} \&base)}\label{classTiXmlElement_adecf0300374e8658629996b3ee12cf18}

\item 
const char $\ast$ \hyperlink{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\-Attribute} (const char $\ast$name) const 
\item 
const char $\ast$ \hyperlink{classTiXmlElement_a0ed8348fdc56b72a6b4900ce5bac1849}{\-Attribute} (const char $\ast$name, int $\ast$i) const 
\item 
const char $\ast$ \hyperlink{classTiXmlElement_aeaff99d4f0ea5b34f7aee202aad457ba}{\-Attribute} (const char $\ast$name, double $\ast$d) const 
\item 
int \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute} (const char $\ast$name, int $\ast$\-\_\-value) const 
\item 
\hypertarget{classTiXmlElement_ae48df644f890ab86fa19839ac401f00d}{int \hyperlink{classTiXmlElement_ae48df644f890ab86fa19839ac401f00d}{\-Query\-Unsigned\-Attribute} (const char $\ast$name, unsigned $\ast$\-\_\-value) const }\label{classTiXmlElement_ae48df644f890ab86fa19839ac401f00d}

\begin{DoxyCompactList}\small\item\em \-Query\-Unsigned\-Attribute examines the attribute -\/ see \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute()}. \end{DoxyCompactList}\item 
int \hyperlink{classTiXmlElement_af4a1d3f88c28eb0f3115dc39ebd83fff}{\-Query\-Bool\-Attribute} (const char $\ast$name, bool $\ast$\-\_\-value) const 
\item 
\hypertarget{classTiXmlElement_a898d7730ecc341f0bffc7a9dadbf1ce7}{int \hyperlink{classTiXmlElement_a898d7730ecc341f0bffc7a9dadbf1ce7}{\-Query\-Double\-Attribute} (const char $\ast$name, double $\ast$\-\_\-value) const }\label{classTiXmlElement_a898d7730ecc341f0bffc7a9dadbf1ce7}

\begin{DoxyCompactList}\small\item\em \-Query\-Double\-Attribute examines the attribute -\/ see \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute()}. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_aa04d3af11601ef5a5f88295203a843be}{int \hyperlink{classTiXmlElement_aa04d3af11601ef5a5f88295203a843be}{\-Query\-Float\-Attribute} (const char $\ast$name, float $\ast$\-\_\-value) const }\label{classTiXmlElement_aa04d3af11601ef5a5f88295203a843be}

\begin{DoxyCompactList}\small\item\em \-Query\-Float\-Attribute examines the attribute -\/ see \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute()}. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a14321ac360efe906ed449d9db3fd9961}{int \hyperlink{classTiXmlElement_a14321ac360efe906ed449d9db3fd9961}{\-Query\-String\-Attribute} (const char $\ast$name, std\-::string $\ast$\-\_\-value) const }\label{classTiXmlElement_a14321ac360efe906ed449d9db3fd9961}

\begin{DoxyCompactList}\small\item\em \-Query\-String\-Attribute examines the attribute -\/ see \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute()}. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\int \hyperlink{classTiXmlElement_a676f888438f8eb8d69a695ead195edb8}{\-Query\-Value\-Attribute} (const std\-::string \&name, \-T $\ast$out\-Value) const 
\item 
\hypertarget{classTiXmlElement_a93fb47dab50d5f0d2912b789648c48ca}{int {\bfseries \-Query\-Value\-Attribute} (const std\-::string \&name, std\-::string $\ast$out\-Value) const }\label{classTiXmlElement_a93fb47dab50d5f0d2912b789648c48ca}

\item 
void \hyperlink{classTiXmlElement_abf0b3bd7f0e4c746a89ec6e7f101fc32}{\-Set\-Attribute} (const char $\ast$name, const char $\ast$\-\_\-value)
\item 
\hypertarget{classTiXmlElement_a0397ccf40f95e01bfcc46728170df135}{const std\-::string $\ast$ {\bfseries \-Attribute} (const std\-::string \&name) const }\label{classTiXmlElement_a0397ccf40f95e01bfcc46728170df135}

\item 
\hypertarget{classTiXmlElement_aa0be00b00ed249cbedc2723a5b888ef5}{const std\-::string $\ast$ {\bfseries \-Attribute} (const std\-::string \&name, int $\ast$i) const }\label{classTiXmlElement_aa0be00b00ed249cbedc2723a5b888ef5}

\item 
\hypertarget{classTiXmlElement_a22833b0b61d8c7f6b81e15a6da345a95}{const std\-::string $\ast$ {\bfseries \-Attribute} (const std\-::string \&name, double $\ast$d) const }\label{classTiXmlElement_a22833b0b61d8c7f6b81e15a6da345a95}

\item 
\hypertarget{classTiXmlElement_ad79cb2416a5b94784f9a517add7e2d6d}{int {\bfseries \-Query\-Int\-Attribute} (const std\-::string \&name, int $\ast$\-\_\-value) const }\label{classTiXmlElement_ad79cb2416a5b94784f9a517add7e2d6d}

\item 
\hypertarget{classTiXmlElement_a157250e0c0303657d911f6991106ba73}{int {\bfseries \-Query\-Double\-Attribute} (const std\-::string \&name, double $\ast$\-\_\-value) const }\label{classTiXmlElement_a157250e0c0303657d911f6991106ba73}

\item 
void \hyperlink{classTiXmlElement_a80ed65b1d194c71c6c9986ae42337d7d}{\-Set\-Attribute} (const std\-::string \&name, const std\-::string \&\-\_\-value)
\item 
\hypertarget{classTiXmlElement_a6f18d54fbe25bbc527936ee65363b3c5}{void \hyperlink{classTiXmlElement_a6f18d54fbe25bbc527936ee65363b3c5}{\-Set\-Attribute} (const std\-::string \&name, int \-\_\-value)}\label{classTiXmlElement_a6f18d54fbe25bbc527936ee65363b3c5}

\begin{DoxyCompactList}\small\item\em \-S\-T\-L std\-::string form. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_ac2112d423b39a93012b241f6baf4d3d3}{void {\bfseries \-Set\-Double\-Attribute} (const std\-::string \&name, double value)}\label{classTiXmlElement_ac2112d423b39a93012b241f6baf4d3d3}

\item 
void \hyperlink{classTiXmlElement_ace6f4be75e373726d4774073d666d1a7}{\-Set\-Attribute} (const char $\ast$name, int value)
\item 
void \hyperlink{classTiXmlElement_a0d1dd975d75496778177e35abfe0ec0b}{\-Set\-Double\-Attribute} (const char $\ast$name, double value)
\item 
void \hyperlink{classTiXmlElement_a56979767deca794376b1dfa69a525b2a}{\-Remove\-Attribute} (const char $\ast$name)
\item 
\hypertarget{classTiXmlElement_a1afa6aea716511326a608e4c05df4f3a}{void \hyperlink{classTiXmlElement_a1afa6aea716511326a608e4c05df4f3a}{\-Remove\-Attribute} (const std\-::string \&name)}\label{classTiXmlElement_a1afa6aea716511326a608e4c05df4f3a}

\begin{DoxyCompactList}\small\item\em \-S\-T\-L std\-::string form. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a516054c9073647d6cb29b6abe9fa0592}{const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ \hyperlink{classTiXmlElement_a516054c9073647d6cb29b6abe9fa0592}{\-First\-Attribute} () const }\label{classTiXmlElement_a516054c9073647d6cb29b6abe9fa0592}

\begin{DoxyCompactList}\small\item\em \-Access the first attribute in this element. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a4b33780fc565d38d6b54f640e0cf1737}{\hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ {\bfseries \-First\-Attribute} ()}\label{classTiXmlElement_a4b33780fc565d38d6b54f640e0cf1737}

\item 
\hypertarget{classTiXmlElement_a86191b49f9177be132b85b14655f1381}{const \hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ \hyperlink{classTiXmlElement_a86191b49f9177be132b85b14655f1381}{\-Last\-Attribute} () const }\label{classTiXmlElement_a86191b49f9177be132b85b14655f1381}

\begin{DoxyCompactList}\small\item\em \-Access the last attribute in this element. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a222f81cf06155cd108f2a68d4d176004}{\hyperlink{classTiXmlAttribute}{\-Ti\-Xml\-Attribute} $\ast$ {\bfseries \-Last\-Attribute} ()}\label{classTiXmlElement_a222f81cf06155cd108f2a68d4d176004}

\item 
const char $\ast$ \hyperlink{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\-Get\-Text} () const 
\item 
\hypertarget{classTiXmlElement_aa464535ea1994db337cb6a8ce4b588b5}{virtual \hyperlink{classTiXmlNode}{\-Ti\-Xml\-Node} $\ast$ \hyperlink{classTiXmlElement_aa464535ea1994db337cb6a8ce4b588b5}{\-Clone} () const }\label{classTiXmlElement_aa464535ea1994db337cb6a8ce4b588b5}

\begin{DoxyCompactList}\small\item\em \-Creates a new \-Element and returns it -\/ the returned element is a copy. \end{DoxyCompactList}\item 
virtual void \hyperlink{classTiXmlElement_afbf52736e70fc91ec9d760721d6f4fd2}{\-Print} (\-F\-I\-L\-E $\ast$cfile, int depth) const 
\item 
\hypertarget{classTiXmlElement_a697f51bbfff55b7e371c20278087c223}{virtual const char $\ast$ {\bfseries \-Parse} (const char $\ast$p, \-Ti\-Xml\-Parsing\-Data $\ast$data, \-Ti\-Xml\-Encoding encoding)}\label{classTiXmlElement_a697f51bbfff55b7e371c20278087c223}

\item 
\hypertarget{classTiXmlElement_ac5b8d0e25fa23fd9acbb6d146082901c}{virtual const \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} $\ast$ \hyperlink{classTiXmlElement_ac5b8d0e25fa23fd9acbb6d146082901c}{\-To\-Element} () const }\label{classTiXmlElement_ac5b8d0e25fa23fd9acbb6d146082901c}

\begin{DoxyCompactList}\small\item\em \-Cast to a more defined type. \-Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classTiXmlElement_a9def86337ea7a755eb41cac980f60c7a}{virtual \hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} $\ast$ \hyperlink{classTiXmlElement_a9def86337ea7a755eb41cac980f60c7a}{\-To\-Element} ()}\label{classTiXmlElement_a9def86337ea7a755eb41cac980f60c7a}

\begin{DoxyCompactList}\small\item\em \-Cast to a more defined type. \-Will return null not of the requested type. \end{DoxyCompactList}\item 
virtual bool \hyperlink{classTiXmlElement_a71a81b2afb0d42be1543d1c404dee6f5}{\-Accept} (\hyperlink{classTiXmlVisitor}{\-Ti\-Xml\-Visitor} $\ast$visitor) const 
\end{DoxyCompactItemize}
\subsection*{\-Protected \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTiXmlElement_a9e0c1983b840de4134f1f6bf7af00b0f}{void {\bfseries \-Copy\-To} (\hyperlink{classTiXmlElement}{\-Ti\-Xml\-Element} $\ast$target) const }\label{classTiXmlElement_a9e0c1983b840de4134f1f6bf7af00b0f}

\item 
\hypertarget{classTiXmlElement_a5670933ec2d7d9763b9891acc05d7f7d}{void {\bfseries \-Clear\-This} ()}\label{classTiXmlElement_a5670933ec2d7d9763b9891acc05d7f7d}

\item 
\hypertarget{classTiXmlElement_acc42052299e0bcf04871f3c2d229fe93}{virtual void {\bfseries \-Stream\-In} (std\-::istream $\ast$in, \-T\-I\-X\-M\-L\-\_\-\-S\-T\-R\-I\-N\-G $\ast$tag)}\label{classTiXmlElement_acc42052299e0bcf04871f3c2d229fe93}

\item 
\hypertarget{classTiXmlElement_ad072ea0e78226a52f0a3872fa03bc29c}{const char $\ast$ {\bfseries \-Read\-Value} (const char $\ast$in, \-Ti\-Xml\-Parsing\-Data $\ast$prev\-Data, \-Ti\-Xml\-Encoding encoding)}\label{classTiXmlElement_ad072ea0e78226a52f0a3872fa03bc29c}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-The element is a container class. \-It has a value, the element name, and can contain other elements, text, comments, and unknowns. \-Elements also contain an arbitrary number of attributes. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classTiXmlElement_a71a81b2afb0d42be1543d1c404dee6f5}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Accept@{\-Accept}}
\index{\-Accept@{\-Accept}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Accept}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool {\bf \-Ti\-Xml\-Element\-::\-Accept} (
\begin{DoxyParamCaption}
\item[{{\bf \-Ti\-Xml\-Visitor} $\ast$}]{visitor}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classTiXmlElement_a71a81b2afb0d42be1543d1c404dee6f5}
\-Walk the \-X\-M\-L tree visiting this node and all of its children. 

\-Implements \hyperlink{classTiXmlNode_acc0f88b7462c6cb73809d410a4f5bb86}{\-Ti\-Xml\-Node}.

\hypertarget{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Attribute@{\-Attribute}}
\index{\-Attribute@{\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf \-Ti\-Xml\-Element\-::\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}
\-Given an attribute name, \hyperlink{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\-Attribute()} returns the value for the attribute of that name, or null if none exists. \hypertarget{classTiXmlElement_a0ed8348fdc56b72a6b4900ce5bac1849}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Attribute@{\-Attribute}}
\index{\-Attribute@{\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf \-Ti\-Xml\-Element\-::\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{int $\ast$}]{i}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_a0ed8348fdc56b72a6b4900ce5bac1849}
\-Given an attribute name, \hyperlink{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\-Attribute()} returns the value for the attribute of that name, or null if none exists. \-If the attribute exists and can be converted to an integer, the integer value will be put in the return 'i', if 'i' is non-\/null. \hypertarget{classTiXmlElement_aeaff99d4f0ea5b34f7aee202aad457ba}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Attribute@{\-Attribute}}
\index{\-Attribute@{\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf \-Ti\-Xml\-Element\-::\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{double $\ast$}]{d}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_aeaff99d4f0ea5b34f7aee202aad457ba}
\-Given an attribute name, \hyperlink{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\-Attribute()} returns the value for the attribute of that name, or null if none exists. \-If the attribute exists and can be converted to an double, the double value will be put in the return 'd', if 'd' is non-\/null. \hypertarget{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Get\-Text@{\-Get\-Text}}
\index{\-Get\-Text@{\-Get\-Text}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Get\-Text}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf \-Ti\-Xml\-Element\-::\-Get\-Text} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}
\-Convenience function for easy access to the text inside an element. \-Although easy and concise, \hyperlink{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\-Get\-Text()} is limited compared to getting the \hyperlink{classTiXmlText}{\-Ti\-Xml\-Text} child and accessing it directly.

\-If the first child of 'this' is a \hyperlink{classTiXmlText}{\-Ti\-Xml\-Text}, the \hyperlink{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\-Get\-Text()} returns the character string of the \-Text node, else null is returned.

\-This is a convenient method for getting the text of simple contained text\-: \begin{DoxyVerb}
		<foo>This is text</foo>
		const char* str = fooElement->GetText();
		\end{DoxyVerb}


'str' will be a pointer to \char`\"{}\-This is text\char`\"{}.

\-Note that this function can be misleading. \-If the element foo was created from this \-X\-M\-L\-: \begin{DoxyVerb}
		<foo><b>This is text</b></foo> 
		\end{DoxyVerb}


then the value of str would be null. \-The first child node isn't a text node, it is another element. \-From this \-X\-M\-L\-: \begin{DoxyVerb}
		<foo>This is <b>text</b></foo> 
		\end{DoxyVerb}
 \hyperlink{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\-Get\-Text()} will return \char`\"{}\-This is \char`\"{}.

\-W\-A\-R\-N\-I\-N\-G\-: \hyperlink{classTiXmlElement_af3282294986cdb216646ea1f67af2c87}{\-Get\-Text()} accesses a child node -\/ don't become confused with the similarly named \hyperlink{classTiXmlHandle_a9fc739c8a18d160006f82572fc143d13}{\-Ti\-Xml\-Handle\-::\-Text()} and \hyperlink{classTiXmlNode_a3ddfbcac78fbea041fad57e5c6d60a03}{\-Ti\-Xml\-Node\-::\-To\-Text()} which are safe type casts on the referenced node. \hypertarget{classTiXmlElement_afbf52736e70fc91ec9d760721d6f4fd2}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Print@{\-Print}}
\index{\-Print@{\-Print}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void {\bf \-Ti\-Xml\-Element\-::\-Print} (
\begin{DoxyParamCaption}
\item[{\-F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}\label{classTiXmlElement_afbf52736e70fc91ec9d760721d6f4fd2}
\-All \-Tiny\-Xml classes can print themselves to a filestream or the string class (\hyperlink{classTiXmlString}{\-Ti\-Xml\-String} in non-\/\-S\-T\-L mode, std\-::string in \-S\-T\-L mode.) \-Either or both cfile and str can be null.

\-This is a formatted print, and will insert tabs and newlines.

(\-For an unformatted stream, use the $<$$<$ operator.) 

\-Implements \hyperlink{classTiXmlBase_a0de56b3f2ef14c65091a3b916437b512}{\-Ti\-Xml\-Base}.

\hypertarget{classTiXmlElement_af4a1d3f88c28eb0f3115dc39ebd83fff}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Query\-Bool\-Attribute@{\-Query\-Bool\-Attribute}}
\index{\-Query\-Bool\-Attribute@{\-Query\-Bool\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Query\-Bool\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Ti\-Xml\-Element\-::\-Query\-Bool\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{bool $\ast$}]{\-\_\-value}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_af4a1d3f88c28eb0f3115dc39ebd83fff}
\-Query\-Bool\-Attribute examines the attribute -\/ see \hyperlink{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\-Query\-Int\-Attribute()}. \-Note that '1', 'true', or 'yes' are considered true, while '0', 'false' and 'no' are considered false. \hypertarget{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Query\-Int\-Attribute@{\-Query\-Int\-Attribute}}
\index{\-Query\-Int\-Attribute@{\-Query\-Int\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Query\-Int\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-Ti\-Xml\-Element\-::\-Query\-Int\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{int $\ast$}]{\-\_\-value}
\end{DoxyParamCaption}
) const}}\label{classTiXmlElement_aea0bfe471380f281c5945770ddbf52b9}
\-Query\-Int\-Attribute examines the attribute -\/ it is an alternative to the \hyperlink{classTiXmlElement_ae419a442a9701a62b0c3d8fd1cbdd12d}{\-Attribute()} method with richer error checking. \-If the attribute is an integer, it is stored in 'value' and the call returns \-T\-I\-X\-M\-L\-\_\-\-S\-U\-C\-C\-E\-S\-S. \-If it is not an integer, it returns \-T\-I\-X\-M\-L\-\_\-\-W\-R\-O\-N\-G\-\_\-\-T\-Y\-P\-E. \-If the attribute does not exist, then \-T\-I\-X\-M\-L\-\_\-\-N\-O\-\_\-\-A\-T\-T\-R\-I\-B\-U\-T\-E is returned. \hypertarget{classTiXmlElement_a676f888438f8eb8d69a695ead195edb8}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Query\-Value\-Attribute@{\-Query\-Value\-Attribute}}
\index{\-Query\-Value\-Attribute@{\-Query\-Value\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Query\-Value\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ int {\bf \-Ti\-Xml\-Element\-::\-Query\-Value\-Attribute} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name, }
\item[{\-T $\ast$}]{out\-Value}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}\label{classTiXmlElement_a676f888438f8eb8d69a695ead195edb8}
\-Template form of the attribute query which will try to read the attribute into the specified type. \-Very easy, very powerful, but be careful to make sure to call this with the correct type.

\-N\-O\-T\-E\-: \-This method doesn't work correctly for 'string' types that contain spaces.

\begin{DoxyReturn}{\-Returns}
\-T\-I\-X\-M\-L\-\_\-\-S\-U\-C\-C\-E\-S\-S, \-T\-I\-X\-M\-L\-\_\-\-W\-R\-O\-N\-G\-\_\-\-T\-Y\-P\-E, or \-T\-I\-X\-M\-L\-\_\-\-N\-O\-\_\-\-A\-T\-T\-R\-I\-B\-U\-T\-E 
\end{DoxyReturn}
\hypertarget{classTiXmlElement_a56979767deca794376b1dfa69a525b2a}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Remove\-Attribute@{\-Remove\-Attribute}}
\index{\-Remove\-Attribute@{\-Remove\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Remove\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Element\-::\-Remove\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}\label{classTiXmlElement_a56979767deca794376b1dfa69a525b2a}
\-Deletes an attribute with the given name. \hypertarget{classTiXmlElement_abf0b3bd7f0e4c746a89ec6e7f101fc32}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Set\-Attribute@{\-Set\-Attribute}}
\index{\-Set\-Attribute@{\-Set\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Set\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Element\-::\-Set\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{const char $\ast$}]{\-\_\-value}
\end{DoxyParamCaption}
)}}\label{classTiXmlElement_abf0b3bd7f0e4c746a89ec6e7f101fc32}
\-Sets an attribute of name to a given value. \-The attribute will be created if it does not exist, or changed if it does. \hypertarget{classTiXmlElement_a80ed65b1d194c71c6c9986ae42337d7d}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Set\-Attribute@{\-Set\-Attribute}}
\index{\-Set\-Attribute@{\-Set\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Set\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Element\-::\-Set\-Attribute} (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name, }
\item[{const std\-::string \&}]{\-\_\-value}
\end{DoxyParamCaption}
)}}\label{classTiXmlElement_a80ed65b1d194c71c6c9986ae42337d7d}
\-S\-T\-L std\-::string form. \hypertarget{classTiXmlElement_ace6f4be75e373726d4774073d666d1a7}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Set\-Attribute@{\-Set\-Attribute}}
\index{\-Set\-Attribute@{\-Set\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Set\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-Ti\-Xml\-Element\-::\-Set\-Attribute} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{int}]{value}
\end{DoxyParamCaption}
)}}\label{classTiXmlElement_ace6f4be75e373726d4774073d666d1a7}
\-Sets an attribute of name to a given value. \-The attribute will be created if it does not exist, or changed if it does. \hypertarget{classTiXmlElement_a0d1dd975d75496778177e35abfe0ec0b}{\index{\-Ti\-Xml\-Element@{\-Ti\-Xml\-Element}!\-Set\-Double\-Attribute@{\-Set\-Double\-Attribute}}
\index{\-Set\-Double\-Attribute@{\-Set\-Double\-Attribute}!TiXmlElement@{\-Ti\-Xml\-Element}}
\subsubsection[{\-Set\-Double\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void \-Ti\-Xml\-Element\-::\-Set\-Double\-Attribute (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{name, }
\item[{double}]{value}
\end{DoxyParamCaption}
)}}\label{classTiXmlElement_a0d1dd975d75496778177e35abfe0ec0b}
\-Sets an attribute of name to a given value. \-The attribute will be created if it does not exist, or changed if it does. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
include/tinyxml.\-h\end{DoxyCompactItemize}
